@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #edf2fb;
    color: #1f2a44;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.page {
    width: min(960px, 100%);
    display: flex;
    justify-content: center;
}

.clock-card {
    width: 100%;
    background-color: rgba(202, 240, 248, 0.3);
    border: 1px solid #e4e7ee;
    border-radius: 14px;
    padding: 28px 22px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

.clock-header {
    text-align: center;
    margin-bottom: 22px;
}


.clock-header h1 {
    font-size: clamp(2.4rem, 4vw, 3rem);
    color: #034078;
    font-weight: 700;
    margin-bottom: 4px;
}

.subtitle {
    margin-top: 15px;
    margin-bottom: 25px;
    color: #034078;
    font-size: 1rem;
    line-height: 1.5;
}

.time-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
    width: 100%;
}

.time-block {
    text-align: center;
    color: #1282a2;
    background-color: #ffffff;
    border-radius: 10px;
    padding: 10px 8px;
    border: 1px solid #e4e7ee;
    flex: 1 1 0;
    min-width: 0;
}

.label {
    display: block;
    color: #034078;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.value {
    display: inline-block;
    font-size: clamp(2rem, 5vw, 2.6rem);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.colon {
    text-align: center;
    font-size: clamp(2rem, 5vw, 2.4rem);
    font-weight: 700;
    color: #81c3d7;
    padding: 0 3px;
}

.ampm {
    justify-self: end;
    padding: 10px 12px;
    border-radius: 10px;
    background: #34a0a4;
    color: #ffffff;
    font-weight: 600;
    border: 1px solid #d6e5ff;
    letter-spacing: 0.05em;
    flex: 0 1 auto;
}

.controls {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
}

.controls button {
    background: #34a0a4;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 12px 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}

.controls button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.28);
}

.controls button:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 680px) {
    body {
        padding: 16px;
    }

    .clock-card {
        padding: 22px 16px;
    }

    .time-row {
        flex-wrap: nowrap;
        gap: 6px;
    }

    .time-block {
        min-width: 0;
        padding: 8px 6px;
        flex: 1 1 0;
    }

    .value {
        font-size: clamp(1.6rem, 8vw, 2.1rem);
    }

    .colon {
        font-size: clamp(1.6rem, 8vw, 2.1rem);
        padding: 0 2px;
    }

    .ampm {
        width: auto;
        text-align: center;
        align-self: center;
        padding: 8px 10px;
        font-size: 0.85rem;
    }
}
